CREATE TABLE [dbo].[DnnProduct_CDS_Permissions]
(
[ID] [int] NOT NULL IDENTITY(1, 1) NOT FOR REPLICATION,
[TemplateID] [int] NOT NULL,
[PermissionType] [tinyint] NOT NULL,
[Scope] [tinyint] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_Permissions] ADD CONSTRAINT [PK_DnnProduct_CDS_Permissions] PRIMARY KEY CLUSTERED  ([ID]) WITH (FILLFACTOR=85) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_Permissions] WITH NOCHECK ADD CONSTRAINT [FK_DnnProduct_CDS_Permissions_DnnProduct_CDS_Templates] FOREIGN KEY ([TemplateID]) REFERENCES [dbo].[DnnProduct_CDS_Templates] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE NOT FOR REPLICATION
GO
